# #未去重版
# list=[1,4,7,5,8,2,1,3,4,5,9,7,6,1,10]
# for i in list:
#     print(i,list.count(i))
# 去重版
list=[1,4,7,5,8,2,1,3,4,5,9,7,6,1,10]
list1=[]
for i in list:
    if i not in list1:
        list1.append(i)
    else:
        continue
for i in list1:
    print(i,list1.count(i))


